<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'StudentEdit.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
  td{border: 1px solid #20B2AA;}
  a{
  text-decoration: none;
  }
</style>
  </head>
  
  <body>
    <table  style="width:100% ;">
          <tr style="background-color: #2E8B57">
            <td style="color:#fff"><b>&nbsp;学生信息编辑</b></td>
          </tr>
        </table>
        
        <form action="studentServlet?action=add" method="post">
        <table  style="width:100% ;">
          <tr >
            <td align="right">学号：</td>
            <td><input type="text" name="xh"  value="${stuData.stu_xh}" /></td>
            <td align="right">姓名：</td>
            <td><input type="text" name="name" value="${stuData.stu_name}" /></td>
          </tr>
          <tr >
            <td align="right">性别：</td>
            <td><input type="text" name="sex" value="${stuData.stu_sex}"/></td>
            <td align="right">年龄：</td>
            <td><input type="text" name="age" value="${stuData.stu_age}" /></td>
          </tr>
          <tr >
            <td align="right">手机：</td>
            <td><input type="text" name="mobile" value="${stuData.stu_mobile}" /></td>
            <td align="right">班级：</td>
            <td>
                <select name="classid" >
                  <option value="000">一班</option>
                  <option value="001">二班</option>
                  <option value="002">三班</option>
                  <option value="003">四班</option>
                </select>
            </td>
          </tr>
          <tr >
            <td align="right">住址：</td>
            <td colspan="3"><input type="text" name="address" value="${stuData.stu_address}" style="width:1000px"/></td>
            
          </tr>
          <tr style="background-color: #2E8B57">
            <td colspan="4" align="center">
                 <input type="submit" value="提交" />&nbsp;&nbsp;
                 <input type="reset" value="重置" />
            </td>
           
          </tr>
        </table>
        </form>
  </body>
</html>
